package 设计模式.q_访问者模式;

import cn.hutool.log.StaticLog;

/**
 * @author caihe
 * @date 2023/3/21 16:37
 */
public class SergeantVisitor extends UnitVisitor {
    @Override
    public void visit(Commander commander) {
        System.out.println(111);
    }

    @Override
    public void visit(Sergeant sergeant) {
        StaticLog.info("中士来了，来两个馒头");
        
    }
}
